<script>
   let m = { x: 0, y: 0 };
  const handleMouseMove = (e) => {
    console.log(e);
    m.x = e.clientX;
    m.y = e.clientY;
  };

  function handleClick() {
    alert('no more alerts')
  }
</script>

<button on:click|once={handleClick}>只能点击一次</button>

<div role="doc-notice" on:mousemove={handleMouseMove}>
  位置：{m.x} x {m.y}
</div>

<style>
  div { width: 100%; height: 100%; }
</style>
